# John's version

print("Calculates mpg given miles and gallons.")

milesDriven = float(input("Miles driven: "))
gallonsUsed = float(input("Gallons used: "))

mpg = milesDriven/gallonsUsed
print("You achieved ", mpg, " miles per gallon")
